[BLOCK] blkback: Copy shared data before verification
authorkfraser@localhost.localdomain <kfraser@localhost.localdomain>
Mon, 23 Oct 2006 09:00:14 +0000 (10:00 +0100)
committerkfraser@localhost.localdomain <kfraser@localhost.localdomain>
Mon, 23 Oct 2006 09:00:14 +0000 (10:00 +0100)
commit76da00df1abdb7315d51b84b850670b17cead4bf
tree8e57ee75782457e2dbb8d72b0b6e39ab0e88203d
parent94ee555a3aee8f3cf8c3575410c69d85a1496397
[BLOCK] blkback: Copy shared data before verification

As it is blkback verifies the metadata from the frontend in place.
This means we run the risk of the frontend changing the data after
we've verified it.  This patch copies the data onto the stack before
verifying and using it to ensure we see a consistent snapshot.

Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
linux-2.6-xen-sparse/drivers/xen/blkback/blkback.c